/**
 * 
 */
package com.nars.exceptions.excersices.starter;

import com.nars.exceptions.excersices.InvalidStudentException;
import com.nars.exceptions.excersices.Student;

/**
 * @author Student
 * 
 */
public class StudentExceptionStarter {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			Student student1 = new Student(8, Student.Gender.MALE, "VenelinPetkov", 1);
			System.out.println(student1.toString());
		} catch (IllegalArgumentException e) {
			try {
				throw new InvalidStudentException("Invalid Arguments", e);
			} catch (InvalidStudentException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}			
		}
	}
}
